package com.naza.rpc.exception;

/**
 * @author yl
 */
public class NazaException extends RuntimeException {

    private static final long serialVersionUID = 2317143950334432534L;

    //是否要重试的exception
    private boolean retryable = false;

    public NazaException() {
        super();
        this.retryable = false;
    }

    public NazaException(boolean retryable) {
        super();
        this.retryable = retryable;
    }

    public NazaException(String message) {
        super(message);
        this.retryable = false;
    }

    public NazaException(String message, boolean retryable) {
        super(message);
        this.retryable = retryable;
    }

    public NazaException(String message, Throwable cause) {
        super(message, cause);
        this.retryable = false;
    }

    public NazaException(String message, Throwable cause, boolean retryable) {
        super(message, cause);
        this.retryable = retryable;
    }

    public NazaException(Throwable cause) {
        super(cause);
        this.retryable = false;
    }

    public NazaException(Throwable cause, boolean retryable) {
        super(cause);
        this.retryable = retryable;
    }

    public boolean retryable() {
        return this.retryable;
    }
}
